package com.threecoder.ums.view.mediator
{
	import com.threecoder.ums.view.event.AppEvent;
	
	import org.puremvc.as3.patterns.mediator.Mediator;
	
	public class ApplicationMediator extends Mediator
	{
		public static const NAME:String = "ApplicationMediator";
		
		public function ApplicationMediator( app :UMSClient )
		{
			//TODO: implement function
			super(NAME, app);
		}
		
		override public function onRegister() :void {
			app.addEventListener( AppEvent.EXIT_APP,  handleExitApp );
		}
		
		private function handleExitApp( event:AppEvent ):void
		{
			
		}
		
		private function get app():UMSClient
		{
			return viewComponent as UMSClient;
		}
	}
}